package com.xbongbong.workflow.model.impl;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.workflow.domain.dao.WorkflowDataChangeRecordDao;
import com.xbongbong.workflow.domain.entity.WorkflowDataChangeRecordEntity;
import com.xbongbong.workflow.model.WorkflowDataChangeRecordModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/9/20 16:27
 * @description：
 */
@Service("workflowDataChangeRecordModel")
public class WorkflowDataChangeRecordModelImpl implements WorkflowDataChangeRecordModel {

    @Resource
    private WorkflowDataChangeRecordDao workflowDataChangeRecordDao;

    @Override
    public Integer insert(WorkflowDataChangeRecordEntity entity) throws XbbException {
        return workflowDataChangeRecordDao.insert(entity);
    }

    @Override
    public Integer update(WorkflowDataChangeRecordEntity entity) throws XbbException {
        return null;
    }

    @Override
    public List<WorkflowDataChangeRecordEntity> findEntitys(Map<String, Object> param) {
        return workflowDataChangeRecordDao.findEntities(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return null;
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return null;
    }
}
